<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:94:"E:\phpstudy\PHPTutorial\WWW\htdocs\newgit\hwss1\public/../application/home\view\base\base.html";i:1552616598;s:86:"E:\phpstudy\PHPTutorial\WWW\htdocs\newgit\hwss1\application\home\view\base\header.html";i:1552443673;s:84:"E:\phpstudy\PHPTutorial\WWW\htdocs\newgit\hwss1\application\home\view\base\menu.html";i:1552616598;s:86:"E:\phpstudy\PHPTutorial\WWW\htdocs\newgit\hwss1\application\home\view\base\footer.html";i:1552443674;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <link rel="stylesheet" href="/home/css/reset.css">
    <link rel="stylesheet" href="/home/css/head-footer.css">
    <link rel="stylesheet" href="/home/css/user-center.css">
</head>
<body>
<div class="header-wrap">
    <div class="header-top-wrap">
        <div class="header-top clearfixa">
            <div class="logo-box fl">
                <a href="javascript:void(0)">
                    <img src="/home/images/logo.png" alt="">
                </a>
            </div>
            <div class="login-api-box fr">
                <?php if($agent_info['username'] != ''): ?>
                <span>欢迎 <?php echo $agent_info['username']; ?>。</span>/
                <span><a href="<?php echo url('login/loginOut'); ?>">退出</a></span>
                <?php else: ?>
                <span><a href="/">登录</a></span>/
                <span>注册</span>
                <?php endif; ?>
            </div>
        </div>
    </div>
    <div class="header-bottom-wrap">
        <div class="header-bottom">
            <div class="second-logo-box">
                <a href="javascript:void(0)">
                    <img src="/home/images/teacher-logo.png" alt="">
                </a>
            </div>
        </div>
    </div>
</div>
<div class="user-center-wrap">
    <div class="user-center">
        <div class="bread-nav">
                    <span>
                        <a href="javascript:void(0)">首页 ></a>
                    </span>
            <span>
                        <a href="javascript:void(0)">用户中心</a>
                    </span>
        </div>
        <div class="user-center-main clearfixa">
            



<div class="user-center-left fl">
    <ul class="user-center-nav">
        <?php if($type == 0): ?>
        <li <?php if($action == 'index'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/index'); ?>">基础资料</a></li>
        <li <?php if($action == 'employeelist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/employeeList'); ?>">员工管理</a></li>
        <li <?php if($action == 'productlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/productList'); ?>">产品列表</a></li>
        <li <?php if($action == 'clientlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clientList'); ?>">客户管理</a></li>
        <li <?php if($action == 'clineconsumer'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clineConsumer'); ?>">客户消费统计</a></li>
        <li <?php if($action == 'performance'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/perFormance'); ?>">业绩提成统计</a></li>
        <li <?php if($action == 'distribution'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/distribution'); ?>">分销管理</a></li>
        <li <?php if($action == 'withdraw' || $action == 'apply'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/withdraw'); ?>">提现管理</a></li>
        <li <?php if($action == 'updatepwd'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/updatePwd'); ?>">修改密码</a></li>
        <?php else: ?>
        <li <?php if($action == 'index'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/index'); ?>">基础资料</a></li>
        <li <?php if($action == 'productlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/productList'); ?>">产品列表</a></li>
        <li <?php if($action == 'clientlist'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clientList'); ?>">客户管理</a></li>
        <li <?php if($action == 'clineconsumer'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/clineConsumer'); ?>">客户消费统计</a></li>
        <li <?php if($action == 'performance'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/perFormance'); ?>">业绩提成统计</a></li>
        <li <?php if($action == 'withdraw'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/withdraw'); ?>">提现管理</a></li>
        <li <?php if($action == 'updatepwd'): ?>class="user-center-nav-show"<?php endif; ?>><a href="<?php echo url('base/updatePwd'); ?>">修改密码</a></li>
        <?php endif; ?>
    </ul>
</div>
            <div class="user-center-right fr">
                <div class="base-data-list data-list data-list data-list-show">
                    <!-- 所有页面右侧标题 -->
                    <p class="user-center-nav-title">
                        基础资料
                    </p>
                    <div class="base-data-box">
                        <div class="form-left-space">
                            <!-- 有注释大的input框 -->
                            <input type="hidden" name="id" value="<?php echo $data['id'] ?>" id="id">
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>公司名称：
                                </label>
                                <input type="text" class="big-inputbox" name="company_name"
                                       value="<?php echo $data['company_name'] ?>" id="company_name"> 
                                <span class="information-hit">请按贵公司营业执照上的名称填写</span>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>组织机构代码证号：
                                </label>
                                <input type="text" class="big-inputbox" name="organization_code"
                                       value="<?php echo $data['organization_code'] ?>" id="organization_code">
                                <span class="information-hit">请按组织机构代码证上的代码填写</span>
                            </div>
                            <!-- 无注释大的input框 -->
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>联系人：
                                </label>
                                <input type="text" class="big-inputbox" name="user_name"
                                       value="<?php echo $data['user_name'] ?>" id="user_name">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>联系电话：
                                </label>
                                <input type="text" class="big-inputbox" name="phone"
                                       value="<?php echo $data['phone'] ?>" id="phone">
                                <span class="information-hit">用"-"区分区号及机号,例如,010-51234567-119</span>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>手机号码：
                                </label>
                                <input type="text" class="big-inputbox" name="mobile"
                                       value="<?php echo $data['mobile'] ?>" id="mobile">
                                <span class="information-hit">与您联系的重要途径,请确保填写无误</span>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>电子邮箱：
                                </label>
                                <input type="text" class="big-inputbox" name="email"
                                       value="<?php echo$data['email'] ?>" id="email">
                                <span class="information-hit">本邮箱用于找回密码,请确保填写无误</span>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>企业地址：
                                </label>
                                <input type="text" class="big-inputbox" name="company_address"
                                       value="<?php echo $data['company_address'] ?>" id="company_address">
                            </div>
                            <!-- 下拉框 -->
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>纳税人资格：
                                </label>
                                <?php if($data['taxpayer_type'] == 0): ?>
                                <select name="taxpayer_type" class="big-inputbox" id="taxpayer_type">
                                    <option value="0" selected>一般纳税人</option>
                                    <option value="1">小规模纳税人</option>
                                </select>
                                <?php else: ?>
                                <select name="taxpayer_type" class="big-inputbox" id="taxpayer_type">
                                    <option value="0">一般纳税人</option>
                                    <option value="1" selected>小规模纳税人</option>
                                </select>
                                <?php endif; ?>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>税号：
                                </label>
                                <input type="text" class="big-inputbox" name="tax_id"
                                       value="<?php echo $data['tax_id'] ?>" id="tax_id">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>法人代表：
                                </label>
                                <input type="text" class="big-inputbox" name="leal_person"
                                       value="<?php echo $data['leal_person'] ?>" id="leal_person">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>证件类型：
                                </label>
                                <?php if($data['id_type'] == 0): ?>
                                <select name="id_type" class="big-inputbox" id="id_type">
                                    <option value="0" selected>居民身份证</option>
                                    <option value="1">其他证件</option>
                                </select>
                                <?php else: ?>
                                <select name="id_type" class="big-inputbox" id="id_type">
                                    <option value="0">一般纳税人</option>
                                    <option value="1" selected>其他证件</option>
                                </select>
                                <?php endif; ?>
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>法人身份证号：
                                </label>
                                <input type="text" class="big-inputbox" name="id_num"
                                       value="<?php echo $data['id_num'] ?>" id="id_num">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>经营范围：
                                </label>
                                <input type="text" class="big-inputbox" name="business_scope"
                                       value="<?php echo $data['business_scope'] ?>" id="business_scope">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>开户银行名称：
                                </label>
                                <input type="text" class="big-inputbox" name="bank_name"
                                       value="<?php echo $data['bank_name'] ?>" id="bank_name">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>开户银行账号：
                                </label>
                                <input type="text" class="big-inputbox" name="bankaccount_number"
                                       value="<?php echo $data['bankaccount_number'] ?>" id="bankaccount_number">
                            </div>
                            <div class="form-top-space">
                                <label for="" class="information-nav-title">
                                    <sup>*</sup>开户银行户主：
                                </label>
                                <input type="text" class="big-inputbox" name="bankaccount_holder"
                                       value="<?php echo $data['bankaccount_holder'] ?>" id="bankaccount_holder">
                            </div>
                            <!-- 和input框对其的圆角提交按钮 -->
                            <input class="align-savebtn" id="button" type="button" value="保存">
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </div>
</div>
<div class="footer-container">
        <div class="footer-top">
            <div class="footer-top-content">
                <div class="friendlink-web">合作网站</div>
                <ul class="footer-friendlink">
                    <li>
                        <a href="http://www.people.com.cn/" target="_blank">人民网</a>
                    </li>
                    <li>
                        <a href="http://www.xinhuanet.com/" target="_blank">新华网</a>
                    </li>
                    <li>
                        <a href="http://www.gmw.cn/" target="_blank">光明网</a>
                    </li>
                    <li>
                        <a href="http://www.china.com.cn/" target="_blank">中国网</a>
                    </li>
                    <li>
                        <a href="http://bjrb.bjd.com.cn/" target="_blank">北京日报</a>
                    </li>
                    <li>
                        <a href="https://www.jfdaily.com/" target="_blank">解放日报</a>
                    </li>
                    <li>
                        <a href="http://www.wenming.cn/" target="_blank">中国文明网</a>
                    </li>
                    <li>
                        <a href="http://www.chinakongzi.org/" target="_blank">中国孔子网</a>
                    </li>
                    <li>
                        <a href="http://www.gjctwh.com/" target="_blank">国家传统文化产业促进网</a>
                    </li>
                    <li>
                        <a href="http://guji.artx.cn/" target="_blank">中国古籍全录</a>
                    </li>
                    <li>
                        <a href="http://publish.ancientbooks.cn/docShuju/platformSublibIndex.jspx?libId=6" target="_blank">中华经典古籍库</a>
                    </li>
                    <li>
                        <a href="http://www.confuchina.com/" target="_blank">中国儒学网</a>
                    </li>
                    <li>
                        <a href="http://www.cnki.net/" target="_blank">中国知网</a>
                    </li>
                    <li>
                        <a href="http://www.tcpc.org.cn" target="_blank">中国传统文化促进会</a>
                    </li>
                    <li>
                        <a href="http://www.zhyxctwh.com/" target="_blank">中华国学研究院</a>
                    </li>
                    <li>
                        <a href="http://www.orgcc.com/" target="_blank">中国文化艺术网</a>
                    </li>
                    <li>
                        <a href="http://www.guoxue.com/" target="_blank">国学网</a>
                    </li>
                    <li>
                        <a href="http://www.chuanxi.com.cn/" target="_blank">佛教慧日网</a>
                    </li>
                    <li>
                        <a href="http://www.hxlsw.com/" target="_blank">浩学历史网</a>
                    </li>
                    <li>
                        <a href="http://www.fxsp.org/" target="_blank">佛学视频网</a>
                    </li>
                    <li>
                        <a href="http://www.zgchuantongwenhua.com/" target="_blank">传统文化网</a>
                    </li>
                    <li>
                        <a href="http://www.shanxin.cn/" target="_blank">善信网</a>
                    </li>
                    <li>
                        <a href="http://duguoxue.cn/" target="_blank">读国学网</a>
                    </li>
                    <li>
                        <a href="http://www.songdu.net/" target="_blank">中华诵读网</a>
                    </li>
                    <li>
                        <a href="http://www.chinawenhua.com.cn/" target="_blank">传统文化杂谈</a>
                    </li>
                    <li>
                        <a href="https://www.shunyuanwenhua.com/" target="_blank">舜缘文化</a>
                    </li>
                    <li>
                        <a href="http://www.zhjd.org/" target="_blank">中华经典网</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footer-middle clearfixa">
            <div class="footer-middle1">
                <ul>
                    <li>
                        <a href="/About/jz">家长监控</a>
                    </li>
                    <li>
                        <a href="/About/zhuce">游戏实名注册</a>
                    </li>
                    <li>
                        <a href="/About/jf">游戏纠纷处理</a>
                    </li>
                </ul>
            </div>
            <div class="footer-middle1">
                <ul>
                    <li>
                        <a href="/about/synopsis">华文在线</a>
                    </li>
                    <li>
                        <a href="/About">关于我们</a>
                    </li>
                    <!-- <li>
                                <a href="/Bid">文创招标</a>
                            </li> -->
                    <li>
                        <a href="/bid/bid3">中华大观园</a>
                    </li>
                    <li>
                        <a href="/bid/bid1">5+1工程</a>
                    </li>
                </ul>
            </div>
            <div class="footer-middle2">
                <ul>
                    <li class="footer-text-bold">联系我们</li>
                    <li>电话：010-87729542</li>
                    <li>地区:北京市朝阳区伊莎文化广场A座201</li>
                </ul>
            </div>
            <div class="footer-middle5">
                <ul>
                    <li class="footer-text-bold">商务合作</li>
                    <li>email：shichangbu@zhssw.com</li>
                    <li>手机：13466548198</li>
                </ul>
            </div>
            <div class="footer-middle3">
                <ul>
                    <li class="footer-text-bold">相关资质</li>
                    <li><a href="/web/images/pdf/gb.pdf" target="_blank">广播节目制作许可证</a></li>
                    <li><a href="/web/images/pdf/rz.pdf" target="_blank">软件著作权</a></li>
                    <li><a href="/web/images/pdf/wl.pdf" target="_blank">网络文化经营许可证</a></li>
                </ul>
            </div>
            <div class="footer-middle4">
                <!-- <p class="footer-middle4-attention">关注我们</p> -->
                <div class="footer-divs">
                    <div class="footer-erweima">
                        <div class="footer-erweima-img">
                            <img src="/home/images/erweima.jpg" alt="二维码图片">
                        </div>
                        <p class="footer-middle4-weixin">官方微信</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p class="ac">
                抵制不良游戏　拒绝盗版游戏　注意自我保护　谨防受骗上当　适度游戏益脑　沉迷游戏伤身　合理安排时间　享受健康生活
            </p>
        </div>
        <div class="footer-bottom">
            <p>中华盛视网 Copyright © 2017 www.zhssw.com 京ICP备18017348号
                <script type="text/javascript">
                    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
                    document.write(unescape("%3Cspan id='cnzz_stat_icon_1274773821'%3E%3C/span%3E%3Cscript src='" +
                        cnzz_protocol +
                        "s13.cnzz.com/z_stat.php%3Fid%3D1274773821%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"
                    ));
                </script><span id="cnzz_stat_icon_1274773821"><a href="https://www.cnzz.com/stat/website.php?web_id=1274773821"
                        target="_blank" title="站长统计"><img border="0" hspace="0" vspace="0" src="http://icon.cnzz.com/img/pic.gif"></a></span>
                <script src=" http://s13.cnzz.com/z_stat.php?id=1274773821&amp;show=pic" type="text/javascript"></script>
                <script src="http://c.cnzz.com/core.php?web_id=1274773821&amp;show=pic&amp;t=z" charset="utf-8" type="text/javascript"></script>
            </p>
        </div>
    </div>

</body>

</html>
<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
<script src="/home/js/layer-v/layer/layer.js"></script>

<script>
    var flag = false;
     
     $(document).on('blur','#company_name',function()
       {
            var company_name = $(this).val();
          
            if(company_name == "")
            {
                layer.tips('公司名称不得为空！', '#company_name');

                flag = false;
            }else
            {
                flag = true;
            }
       })
       $(document).on('blur','#organization_code',function()
       {
            var organization_code = $(this).val();
          
            if(organization_code == "")
            {
                layer.tips('组织机构代码证号不得为空！', '#organization_code');

                flag = false;
            }else
            {
                flag = true;
            }
       })
       $(document).on('blur','#id_num',function()
       {
            var id_num = $(this).val();

            var regid_num = /(^\d{15}$)|(^\d{17}(\d|X)$)/;

            if(id_num == ""  || !regid_num.test(id_num))

            {
                layer.tips('身份证号格式不正确,不为空！', '#id_num');

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#user_name',function()
       {
            var user_name = $(this).val();

            var reguser_name = /^[\u4e00-\u9fa5]+$/;

            if(user_name == ""  || !reguser_name.test(user_name))
            {
                layer.tips('姓名必须为中文，不为空！', '#user_name');

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#leal_person',function()
       {
            var leal_person = $(this).val();

            var regleal_person = /^[\u4e00-\u9fa5]+$/;

            if(leal_person == ""  || !regleal_person.test(leal_person))
            {
                layer.tips('法人代表必须为中文，不为空！', '#leal_person');

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#company_address',function()
       {
            var company_address = $(this).val();

            var regcompany_address = /^[\u4e00-\u9fa5]+$/;

            if(company_address == ""  || !regcompany_address.test(company_address))
            {
                layer.tips('请输入正确合法地址！', '#company_address');

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#tax_id',function()
       {
            var tax_id = $(this).val();
          
            if(tax_id == "")
            {
                layer.tips('税号不得为空！', '#tax_id');

                flag = false;
            }else
            {
                flag = true;
            }
       })
       $(document).on('blur','#email',function()
       {
            var email = $(this).val();

            var regemail = /^\w+@[a-zA-Z0-9]{2,10}(?:\.[a-z]{2,4}){1,3}$/;

            if(!regemail.test(email))
            {
                layer.tips('邮箱格式不正确！', '#email');

                flag = false;
            }else
            {
                flag = true;
            }
       })
     $(document).on('blur','#mobile',function()
       {
            var mobile = $(this).val();

            var regmobile = /^[\d]{5,11}$/;

            if(!regmobile.test(mobile))
            {
                layer.tips('手机号码格式不合法', '#mobile');

                flag = false;
            }
            else
            {
                flag = true;
            }      
       })
       $(document).on('blur','#bank_name',function()
       {
            var bank_name = $(this).val();
          
            if(bank_name == "")
            {
                layer.tips('开户银行名称不得为空！', '#bank_name');

                flag = false;
            }else
            {
                flag = true;
            }
       })
       $(document).on('blur','#bankaccount_number',function()
       {
            var bankaccount_number = $(this).val();
          
            if(bankaccount_number == "")
            {
                layer.tips('开户银行账号不得为空！', '#bankaccount_number');

                flag = false;
            }else
            {
                flag = true;
            }
       })
       $(document).on('blur','#bankaccount_holder',function()
       {
            var bankaccount_holder = $(this).val();
          
            if(bankaccount_holder == "")
            {
                layer.tips('开户银行户主不得为空！', '#bankaccount_holder');

                flag = false;
            }else
            {
                flag = true;
            }
       })
        $(document).on('click','#button',function(){
      
            if(flag == false)
            {
                 layer.msg('请填写完整资料！', function(){
                //关闭后的操作
                 return false;
                });
               
            }else
            {
               var id = $('#id').val();
               var company_name = $('#company_name').val();
               var organization_code = $('#organization_code').val();
               var user_name = $('#user_name').val();
               var phone = $('#phone').val();
               var mobile = $('#mobile').val();
               var email = $('#email').val();
               var company_address = $('#company_address').val();
               var taxpayer_type = $('#taxpayer_type').val();
               var tax_id = $('#tax_id').val();
               var leal_person = $('#leal_person').val();
               var id_type = $('#id_type').val();
               var id_num = $('#id_num').val();
               var business_scope = $('#business_scope').val();
               var bank_name = $('#bank_name').val();
               var bankaccount_number = $('#bankaccount_number').val();
               var bankaccount_holder = $('#bankaccount_holder').val();
                $.ajax({
                    url:"<?php echo url('base/saveDetail'); ?>",
                    data:{
                        id : id,
                        company_name : company_name,
                        organization_code : organization_code,
                        user_name : user_name,
                        phone : phone,
                        mobile : mobile,
                        email : email,
                        company_address : company_address,
                        taxpayer_type : taxpayer_type,
                        tax_id : tax_id,
                        leal_person : leal_person,
                        id_type : id_type,
                        id_num : id_num,
                        business_scope : business_scope,
                        bank_name : bank_name,
                        bankaccount_number : bankaccount_number,
                        bankaccount_holder : bankaccount_holder
                    },
                    dataType:'json',
                    type:'post',
                    success:function(data)
                    {
                        if(data.code == '1001')
                        {
                              layer.msg('跳转中···', {
                              icon: 16
                              ,shade: 0.01
                            });
                            window.location.href = 'employeelist';
                        }else
                        {
                            window.location.href = 'employeeadd';
                        }                      
                    }
                })
            }
        });
  
</script>